import request from '@/utils/request'

/**
 * 获取工序工单
 */
export function queryProcess(data) {
  return request({
    url: `/md/monopy/createSn/getShopOperation`,
    method: 'POST',
    data
  })
}

/**
 * 查询条码
 */
export function queryBarCode(data) {
  return request({
    // BaseURL:'',
    // url: `http://localhost:19004/monopy/createSn/querySfc`,
    url: `/md/monopy/createSn/querySfc`,
    method: 'POST',
    data
  })
}
/**
 * 生成条码
 */
export function generationBarCode(data) {
  return request({
    // BaseURL:'',
    // url: `http://localhost:19004/monopy/createSn/createSn`,
    url: `/md/monopy/createSn/createSn`,
    method: 'POST',
    data
  })
}

// 打印
export function printBarCode(data) {
  return request({
    url: `/mes/sys/label/sfcPrint`,
    method: 'post',
    data
  })
}

export function queryOp(data) {
  return request({
    url: `/md/monopy/createSn/getShopOperation`,
    method: 'post',
    data
  })
}

export function queryDispatchOrder(data) {
  return request({
    url: `/md/dispatch/getAllCanPrintDispatch`,
    method: 'post',
    data
  })
}
